Personal tools

Lua/Shared/Angle/Constructor

From JC2-MP Documentation

< Lua‎ | Shared‎ | Angle
Jump to: navigation, search

Default


Returns    Angle
Prototype    Angle()
Description    Constructs an angle with no rotation.


From Euler angles


Returns    Angle
Prototype    Angle(number yaw, number pitch, number roll)
Description    Constructs the angle with the specified yaw, pitch and roll in radians.



From a quaternion


Returns    Angle
Prototype    Angle(number x, number y, number z, number w)
Description    Constructs the angle with the specified rotation around the x, y, z and w axes in radians.